package com.huatai.saas.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 新增工单的入参类
 */
@Data
@Accessors(chain = true)
public class SaveWorkingOrderDto implements Serializable {

	private static final long serialVersionUID = -6201907226296880379L;

	@ApiModelProperty(value = "父级id", required = true)
	private Long parentId;

	@ApiModelProperty(value = "子类id", required = true)
	private Long childId;

	@ApiModelProperty(value = "底板或场景名称", required = true)
	private String childName;

	@ApiModelProperty(value = "工单问题描述", required = true)
	@NotBlank(message = "问题描述不能为空")
	private String description;

	@ApiModelProperty(value = "联系电话", required = true)
	@NotBlank(message = "联系电话不能为空")
	private String phone;

}
